package view;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JSeparator;
import javax.swing.JButton;

import cliente.ClienteImp;

public class PaEmpresaDeTransporteBaja extends JPanel {
	private static final long serialVersionUID = 1L;
	private JTextField txtCuit;

	/**
	 * Create the panel.
	 * @param cliente 
	 */
	public PaEmpresaDeTransporteBaja(ClienteImp cliente) {
		
		JLabel lblCuit = new JLabel("Cuit");
		
		txtCuit = new JTextField();
		txtCuit.setColumns(10);
		
		JLabel lblBaja = new JLabel("Baja de Empresa de Transporte");
		lblBaja.setHorizontalAlignment(SwingConstants.LEFT);
		lblBaja.setForeground(Color.BLUE);
		lblBaja.setFont(new Font("Sylfaen", Font.BOLD | Font.ITALIC, 18));
		
		JSeparator separator = new JSeparator();
		
		JButton btnEliminarEmpresaDe = new JButton("Eliminar Empresa de transporte");
		
		JButton button_1 = new JButton("Cancelar");
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(10)
							.addComponent(lblBaja, GroupLayout.PREFERRED_SIZE, 279, GroupLayout.PREFERRED_SIZE)
							.addGap(4)
							.addComponent(btnEliminarEmpresaDe, GroupLayout.PREFERRED_SIZE, 256, GroupLayout.PREFERRED_SIZE)
							.addGap(6)
							.addComponent(button_1, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
						.addComponent(separator, GroupLayout.PREFERRED_SIZE, 618, GroupLayout.PREFERRED_SIZE)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(10)
							.addComponent(lblCuit, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
							.addGap(4)
							.addComponent(txtCuit, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGap(11)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(lblBaja, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnEliminarEmpresaDe)
						.addComponent(button_1))
					.addGap(11)
					.addComponent(separator, GroupLayout.PREFERRED_SIZE, 1, GroupLayout.PREFERRED_SIZE)
					.addGap(11)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(3)
							.addComponent(lblCuit))
						.addComponent(txtCuit, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(222, Short.MAX_VALUE))
		);
		setLayout(groupLayout);

	}

}
